package com.zzh.model.factory;

/**
 * @author zhangzhihao
 * @email zhangzhihao@gongjiangren.net
 * @date 2020-11-14
 * @desc 抽象工厂 感觉不值得用
 */
class FactoryThreeDemo {

    private FactoryThreeDemo() {
    }

    private static class FactoryDemoHolder {
        static FactoryThreeDemo factoryDemo = new FactoryThreeDemo();
    }

    public static FactoryThreeDemo getInstance() {
        return FactoryThreeDemo.FactoryDemoHolder.factoryDemo;
    }
}
